package ar.com.fiuba.ElectronicCircuitAnalyst.domain.impl.functions.jeval;

import ar.com.fiuba.ElectronicCircuitAnalyst.domain.api.LogicalFunction;
import ar.com.fiuba.ElectronicCircuitAnalyst.domain.api.LogicalFunctionFactory;

/**
 * Jeval based implementation of logical function factory.
 * 
 */
public class JevalLogicalFunctionFactoryImpl implements LogicalFunctionFactory {

	private JevalFunctionStringProcessor processor = new JevalFunctionStringProcessor();

	public LogicalFunction makeLogicalFunction(String function) {
		return new JevalLogicalFunctionImpl(processor.process(function));
	}

}
